<div data-role="content" data-scroll="y" data-height="80%" >
	<div data-iscroll="scroller">
	<ul data-role="listview" data-inset="true" data-theme="a">
<center>
	<?php if($id!="search"):?>
	<?php echo form_open('feed_controller/search');?>
		 <input type="search" name="searchwords" id="search" value=""   />
		
		<?php echo form_close();?>
		
	<?php endif;?>
	<a data-inline="true" href="<?=site_url('feed_controller/to_look_around');?>" data-role="button" >Look Around</a>
		
		<a data-inline="true" href="<?=site_url('feed_controller/to_lucky');?>" data-role="button" >Feel Lucky?</a>
	
		</center>
	<?php $counter=0;?>
	<?php if(isset($rows)) :?><?php foreach($rows as $feed): ?>
		<?php if (!($feed->isconfirmed) || (isset($my_hello)&&$my_hello) ):$counter++;?> <!-- if the hello is confirmed, then it doesn't show -->
			<li data-icon="false" ><a href="<?=site_url('feed_controller/to_apply');?>?helloID=<?=$feed->helloid?>" >
					<!--<img src="<?=base_url('themes/resources/girl.jpg');?>" />-->
			<h3><?=$feed->title;?></h3>
			<p class="ui-li-aside">by <b><?=$feed->fullname;?></b></p>
			<p><b>Place: </b> <?=$feed->place;?>, <?=$feed->areaname;?></p>
			<p><b>Time: </b><i><?=$feed->date." ".$feed->time;?></i></p>
			</a></li>
		<?php endif;?>
	<?php endforeach;?><?php endif;?>	
		
	<?php if($counter<=5&&false):?><!--why we need to fill it up?-->
		<?php for($counter;$counter<=5;$counter++):?>
			<li data-icon="false"><a href="#">
			<h4>There is no hello for now</h4>
			<p>Try see what your friends are doing.</p>
			</a></li>
		<?php endfor;?>
	<?php endif; ?>
	</ul>
	</div>
</div>